<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Aestate: aestate/dbs/_mysql/tag.py Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Aestate
   &#160;<span id="projectnumber">1.0.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_374ee6e3281d8312d956f1f155302869.html">aestate</a></li><li class="navelem"><a class="el" href="dir_28e816ee5dbfc9bc7f7f6d0213c1e50c.html">dbs</a></li><li class="navelem"><a class="el" href="dir_854a7cd6cf997377b36cdb6a7f7d1ccb.html">_mysql</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">tag.py</div>  </div>
</div><!--header-->
<div class="contents">
<a href="tag_8py.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"><a class="line" href="namespaceaestate_1_1dbs_1_1__mysql_1_1tag.html">    1</a></span>&#160;<span class="stringliteral">&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="stringliteral">这个文件用来为pojo对象做标记，当对象为空或为以下任意类型时</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="stringliteral">insert操做将会忽略该字段，find操作不会处理为空的字段</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="stringliteral">&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="keyword">import</span> datetime</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160; </div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keyword">from</span> <a class="code" href="namespaceaestate_1_1ajson.html">aestate.ajson</a> <span class="keyword">import</span> aj</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html">   10</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html">baseTag</a>(object):</div>
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ae43fb3a12d88d59cf251102ea4e8715e">   11</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ae43fb3a12d88d59cf251102ea4e8715e">__init__</a>(self,</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;                 name=None,</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;                 length=None,</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;                 d_point=None,</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;                 t_type=&#39;varchar&#39;,</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;                 is_null=False,</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;                 primary_key=False,</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;                 comment=&quot;&quot;,</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;                 auto_field=False,</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;                 auto_time=False,</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;                 update_auto_time=False,</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;                 default=None):</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        <span class="stringliteral">&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="stringliteral">        :param name:字段名</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="stringliteral">        :param length:长度</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#a4c56e16bdd706356eaf7de1c0e285a26">   26</a></span>&#160;<span class="stringliteral">        :param d_point:小数点</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="stringliteral">        :param t_type:类型</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#af6a06010d1ab46c6732c67ccd138f859">   28</a></span>&#160;<span class="stringliteral">        :param is_null:允许为空</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="stringliteral">        :param primary_key:键</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ab7090a7352de246756445afea6e47364">   30</a></span>&#160;<span class="stringliteral">        :param comment:注释</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="stringliteral">        :param auto_field:自增长键</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="stringliteral">        :param auto_time:默认设置当前时间</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="stringliteral">        :param update_auto_time:默认设置当前时间并根据当前时间更新</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#aff4cc72551eb3df87074ed382a20d6a7">   34</a></span>&#160;<span class="stringliteral">        :param default:默认值</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="stringliteral">        &quot;&quot;&quot;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ad84b85ac1a86a37440c48b802bd0690f">   36</a></span>&#160;        <span class="comment"># 是否为随着时间而更新</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        self.<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#a4c56e16bdd706356eaf7de1c0e285a26">update_auto_time</a> = update_auto_time</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ae9186d0300cbec3f3b598bd385614483">   38</a></span>&#160;        <span class="keywordflow">if</span> update_auto_time:</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;            self.<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#af6a06010d1ab46c6732c67ccd138f859">default</a> = datetime.datetime.now().strftime(<span class="stringliteral">&#39;%Y-%m-%d %H:%M:%S&#39;</span>)</div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ac13d1441a97f0871f09b4c8e9537766e">   40</a></span>&#160;        <span class="comment"># 是否自动设置为当前时间</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        self.<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ab7090a7352de246756445afea6e47364">auto_time</a> = auto_time</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ac92f49bd2c9bccbdf86afcb2f0fea0a0">   42</a></span>&#160;        <span class="keywordflow">if</span> auto_time:</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;            self.<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#af6a06010d1ab46c6732c67ccd138f859">default</a> = datetime.datetime.now().strftime(<span class="stringliteral">&#39;%Y-%m-%d %H:%M:%S&#39;</span>)</div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ae4275c93a9199d10e5e0cd2ad94220e2">   44</a></span>&#160;        <span class="comment"># 是否为自增</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        self.<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#aff4cc72551eb3df87074ed382a20d6a7">autoField</a> = auto_field</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#affd4a515bab891bbc72fbf6d8b6166f2">   46</a></span>&#160;        <span class="comment"># 注释</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        self.<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ad84b85ac1a86a37440c48b802bd0690f">comment</a> = comment</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#adf5b1443fc3bf259302e17a2c37f0832">   48</a></span>&#160;        <span class="comment"># 是否为主键</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        self.<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ae9186d0300cbec3f3b598bd385614483">primary_key</a> = primary_key</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        <span class="comment"># 是否可以为空</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        self.<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ac13d1441a97f0871f09b4c8e9537766e">is_null</a> = is_null</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <span class="comment"># 小数点包含的位数</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        self.<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ac92f49bd2c9bccbdf86afcb2f0fea0a0">d_point</a> = d_point</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <span class="comment"># 字段的名称</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        self.<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ae4275c93a9199d10e5e0cd2ad94220e2">name</a> = name</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <span class="comment"># 类型</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        self.<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#affd4a515bab891bbc72fbf6d8b6166f2">t_type</a> = t_type</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="comment"># 最大长度</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        self.<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#adf5b1443fc3bf259302e17a2c37f0832">length</a> = length</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <span class="comment"># 如果有设置自定义默认值则用自定义,如果有其他的条件触发默认值则设置,反之为空</span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        self.<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#af6a06010d1ab46c6732c67ccd138f859">default</a> = default <span class="keywordflow">if</span> default <span class="keywordflow">else</span> self.<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#af6a06010d1ab46c6732c67ccd138f859">default</a> <span class="keywordflow">if</span> hasattr(self, <span class="stringliteral">&#39;default&#39;</span>) <span class="keywordflow">else</span> <span class="keywordtype">None</span></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <span class="comment"># 如果使用的是被继承的子类，那么在这里就会有一个名为fields的字段</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <span class="comment"># 将所有自定义字段</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <span class="keywordflow">if</span> self.fields:</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;            <span class="keywordflow">for</span> key, value <span class="keywordflow">in</span> self.fields.items():</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;                setattr(self, key, value)</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160; </div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;            del self.fields</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#aa1f042ec0e87fad178bcb8a553e51135">   70</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#aa1f042ec0e87fad178bcb8a553e51135">get_field</a>(self, name):</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <span class="stringliteral">&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="stringliteral">        获得字段</span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="stringliteral">        &quot;&quot;&quot;</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        <span class="keywordflow">return</span> getattr(self, name)</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#a6c68001f4fa5ec8aa91cd4b0e50dd027">   76</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#a6c68001f4fa5ec8aa91cd4b0e50dd027">set_field</a>(self, name, value):</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="stringliteral">&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="stringliteral">        设置值</span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="stringliteral">        &quot;&quot;&quot;</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        setattr(self, name, value)</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#aa182a261c9a878936c7d50cb2459b474">   82</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#aa182a261c9a878936c7d50cb2459b474">get_table</a>(self, bf):</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <span class="stringliteral">&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="stringliteral">        获取表数据结构</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="stringliteral">        &quot;&quot;&quot;</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keywordflow">if</span> bf:</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;            <span class="keywordflow">return</span> aj.parse(self, bf)</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        <span class="keywordflow">return</span> aj.load(aj.parse(self))</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html">   91</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html">Template</a>(<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html">baseTag</a>):</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html#a5a86c2b10dc0bfaba1c371ff1e3c9deb">   93</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html#a5a86c2b10dc0bfaba1c371ff1e3c9deb">__init__</a>(self, cls=None, **kwargs):</div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html#a052b582f7a05ead3545b2820f4ad1e02">   94</a></span>&#160;        self.<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html#a052b582f7a05ead3545b2820f4ad1e02">fields</a> = {}</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        <span class="keywordflow">if</span> cls:</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;            kwargs.update(cls.__dict__)</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;            self.<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html#a052b582f7a05ead3545b2820f4ad1e02">fields</a>[<span class="stringliteral">&#39;cls&#39;</span>] = cls</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        kwargs.update(<a class="code" href="namespaceaestate_1_1dbs_1_1__mysql_1_1tag.html#ac969e1ba370e6c31c4df47e1f2a4cdc0">update_field</a>(**kwargs))</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        self.<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html#a052b582f7a05ead3545b2820f4ad1e02">fields</a>.update(kwargs)</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        super(Template, self).<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html#a5a86c2b10dc0bfaba1c371ff1e3c9deb">__init__</a>(**kwargs)</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinyint_field.html">  103</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinyint_field.html">tinyintField</a>(<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html">Template</a>):</div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinyint_field.html#a2873df48d4a90eeefbe86c210c81a2b4">  104</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinyint_field.html#a2873df48d4a90eeefbe86c210c81a2b4">__init__</a>(self, **kwargs):</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        super(tinyintField, self).<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinyint_field.html#a2873df48d4a90eeefbe86c210c81a2b4">__init__</a>(t_type=<span class="stringliteral">&#39;tinyint&#39;</span>, **kwargs)</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1int_field.html">  108</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1int_field.html">intField</a>(<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html">Template</a>):</div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1int_field.html#a9a4a9cb03cf02c2fca46316a125f6aeb">  109</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1int_field.html#a9a4a9cb03cf02c2fca46316a125f6aeb">__init__</a>(self, **kwargs):</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        super(intField, self).<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1int_field.html#a9a4a9cb03cf02c2fca46316a125f6aeb">__init__</a>(t_type=<span class="stringliteral">&#39;int&#39;</span>, **kwargs)</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1bigint_field.html">  113</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1bigint_field.html">bigintField</a>(<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html">Template</a>):</div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1bigint_field.html#a489716cff9cc24ca13c2893ea4177d9a">  114</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1bigint_field.html#a489716cff9cc24ca13c2893ea4177d9a">__init__</a>(self, **kwargs):</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        super(bigintField, self).<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1bigint_field.html#a489716cff9cc24ca13c2893ea4177d9a">__init__</a>(t_type=<span class="stringliteral">&#39;bigint&#39;</span>, **kwargs)</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1float_field.html">  118</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1float_field.html">floatField</a>(<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html">Template</a>):</div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1float_field.html#ae3280d84b236ea239ab4003d69b41a3f">  119</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1float_field.html#ae3280d84b236ea239ab4003d69b41a3f">__init__</a>(self, **kwargs):</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        super(floatField, self).<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1float_field.html#ae3280d84b236ea239ab4003d69b41a3f">__init__</a>(t_type=<span class="stringliteral">&#39;float&#39;</span>, **kwargs)</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160; </div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1double_field.html">  123</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1double_field.html">doubleField</a>(<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html">Template</a>):</div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1double_field.html#a838ccee0750ef904c3447d236e2a6449">  124</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1double_field.html#a838ccee0750ef904c3447d236e2a6449">__init__</a>(self, **kwargs):</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        super(doubleField, self).<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1double_field.html#a838ccee0750ef904c3447d236e2a6449">__init__</a>(t_type=<span class="stringliteral">&#39;double&#39;</span>, **kwargs)</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160; </div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1datetime_field.html">  128</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1datetime_field.html">datetimeField</a>(<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html">Template</a>):</div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1datetime_field.html#a70fbf5c22c6aecd06b157e4504d50c98">  129</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1datetime_field.html#a70fbf5c22c6aecd06b157e4504d50c98">__init__</a>(self, **kwargs):</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;        super(datetimeField, self).<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1datetime_field.html#a70fbf5c22c6aecd06b157e4504d50c98">__init__</a>(t_type=<span class="stringliteral">&#39;datetime&#39;</span>, **kwargs)</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1char_field.html">  133</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1char_field.html">charField</a>(<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html">Template</a>):</div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1char_field.html#a8be38db4654a8000db563e2009c60a23">  134</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1char_field.html#a8be38db4654a8000db563e2009c60a23">__init__</a>(self, **kwargs):</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;        super(charField, self).<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1char_field.html#a8be38db4654a8000db563e2009c60a23">__init__</a>(t_type=<span class="stringliteral">&#39;char&#39;</span>, **kwargs)</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160; </div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1varchar_field.html">  138</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1varchar_field.html">varcharField</a>(<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html">Template</a>):</div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1varchar_field.html#a183b60b757b4379b2ee69db18f91fd7b">  139</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1varchar_field.html#a183b60b757b4379b2ee69db18f91fd7b">__init__</a>(self, **kwargs):</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        super(varcharField, self).<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1varchar_field.html#a183b60b757b4379b2ee69db18f91fd7b">__init__</a>(t_type=<span class="stringliteral">&#39;varchar&#39;</span>, **kwargs)</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160; </div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160; </div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1text_field.html">  143</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1text_field.html">textField</a>(<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html">Template</a>):</div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1text_field.html#a8957836a853ca6a2a2bccfd0cb814e40">  144</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1text_field.html#a8957836a853ca6a2a2bccfd0cb814e40">__init__</a>(self, **kwargs):</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        super(textField, self).<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1text_field.html#a8957836a853ca6a2a2bccfd0cb814e40">__init__</a>(t_type=<span class="stringliteral">&#39;text&#39;</span>, **kwargs)</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160; </div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinytext_field.html">  148</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinytext_field.html">tinytextField</a>(<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html">Template</a>):</div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinytext_field.html#a1d1983964c4bdb43a87fdbccf3df1972">  149</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinytext_field.html#a1d1983964c4bdb43a87fdbccf3df1972">__init__</a>(self, **kwargs):</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        super(tinytextField, self).<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinytext_field.html#a1d1983964c4bdb43a87fdbccf3df1972">__init__</a>(t_type=<span class="stringliteral">&#39;tinytext&#39;</span>, **kwargs)</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160; </div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1longtext_field.html">  153</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1longtext_field.html">longtextField</a>(<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html">Template</a>):</div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1longtext_field.html#adaede12bd32396dad74926ca8c4a3e4b">  154</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1longtext_field.html#adaede12bd32396dad74926ca8c4a3e4b">__init__</a>(self, **kwargs):</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;        super(longtextField, self).<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1longtext_field.html#adaede12bd32396dad74926ca8c4a3e4b">__init__</a>(t_type=<span class="stringliteral">&#39;longtext&#39;</span>, **kwargs)</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160; </div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160; </div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1bool_field.html">  158</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1bool_field.html">boolField</a>(<a class="code" href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinyint_field.html">tinyintField</a>):</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="stringliteral">&quot;&quot;&quot;布尔值的字段，只有0和1&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160; </div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160; </div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="namespaceaestate_1_1dbs_1_1__mysql_1_1tag.html#ac969e1ba370e6c31c4df47e1f2a4cdc0">  162</a></span>&#160;<span class="keyword">def </span><a class="code" href="namespaceaestate_1_1dbs_1_1__mysql_1_1tag.html#ac969e1ba370e6c31c4df47e1f2a4cdc0">update_field</a>(**kwargs):</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="stringliteral">&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<span class="stringliteral">    更新字典配置</span></div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;<span class="stringliteral">    &quot;&quot;&quot;</span></div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160; </div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <span class="keyword">def </span>no_rep(key, value, **kwargs):</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        <span class="stringliteral">&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="stringliteral">        不存在则替换</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="stringliteral">        &quot;&quot;&quot;</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        <span class="keywordflow">if</span> key <span class="keywordflow">not</span> <span class="keywordflow">in</span> kwargs.keys():</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;            kwargs[key] = value</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;        <span class="keywordflow">return</span> kwargs</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160; </div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    <span class="keyword">def </span>has_attr(key, **kwargs):</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        <span class="keywordflow">if</span> key <span class="keywordflow">in</span> kwargs.keys():</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;            <span class="keywordflow">return</span> kwargs[key]</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;        <span class="keywordflow">return</span> <span class="keywordtype">None</span></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160; </div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    <span class="comment"># kwargs.update(no_rep(&#39;table_name&#39;, has_attr(&#39;__table_name__&#39;, **kwargs), **kwargs))</span></div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    kwargs.update(no_rep(<span class="stringliteral">&#39;name&#39;</span>, has_attr(<span class="stringliteral">&#39;name&#39;</span>, **kwargs), **kwargs))</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    kwargs.update(no_rep(<span class="stringliteral">&#39;length&#39;</span>, has_attr(<span class="stringliteral">&#39;length&#39;</span>, **kwargs), **kwargs))</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    kwargs.update(no_rep(<span class="stringliteral">&#39;d_point&#39;</span>, has_attr(<span class="stringliteral">&#39;d_point&#39;</span>, **kwargs), **kwargs))</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    kwargs.update(no_rep(<span class="stringliteral">&#39;t_type&#39;</span>, has_attr(<span class="stringliteral">&#39;t_type&#39;</span>, **kwargs), **kwargs))</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    kwargs.update(no_rep(<span class="stringliteral">&#39;is_null&#39;</span>, has_attr(<span class="stringliteral">&#39;is_null&#39;</span>, **kwargs), **kwargs))</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    kwargs.update(no_rep(<span class="stringliteral">&#39;primary_key&#39;</span>, has_attr(<span class="stringliteral">&#39;primary_key&#39;</span>, **kwargs), **kwargs))</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    kwargs.update(no_rep(<span class="stringliteral">&#39;comment&#39;</span>, has_attr(<span class="stringliteral">&#39;comment&#39;</span>, **kwargs), **kwargs))</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    kwargs.update(no_rep(<span class="stringliteral">&#39;auto_field&#39;</span>, has_attr(<span class="stringliteral">&#39;auto_field&#39;</span>, **kwargs), **kwargs))</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    kwargs.update(no_rep(<span class="stringliteral">&#39;auto_time&#39;</span>, has_attr(<span class="stringliteral">&#39;auto_time&#39;</span>, **kwargs), **kwargs))</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    kwargs.update(no_rep(<span class="stringliteral">&#39;update_auto_time&#39;</span>, has_attr(<span class="stringliteral">&#39;update_auto_time&#39;</span>, **kwargs), **kwargs))</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="keywordflow">return</span> kwargs</div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag_html_a4c56e16bdd706356eaf7de1c0e285a26"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#a4c56e16bdd706356eaf7de1c0e285a26">aestate.dbs._mysql.tag.baseTag.update_auto_time</a></div><div class="ttdeci">update_auto_time</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00026">tag.py:26</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag_html_affd4a515bab891bbc72fbf6d8b6166f2"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#affd4a515bab891bbc72fbf6d8b6166f2">aestate.dbs._mysql.tag.baseTag.t_type</a></div><div class="ttdeci">t_type</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00046">tag.py:46</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag_html_aff4cc72551eb3df87074ed382a20d6a7"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#aff4cc72551eb3df87074ed382a20d6a7">aestate.dbs._mysql.tag.baseTag.autoField</a></div><div class="ttdeci">autoField</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00034">tag.py:34</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag_html_ad84b85ac1a86a37440c48b802bd0690f"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ad84b85ac1a86a37440c48b802bd0690f">aestate.dbs._mysql.tag.baseTag.comment</a></div><div class="ttdeci">comment</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00036">tag.py:36</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1datetime_field_html_a70fbf5c22c6aecd06b157e4504d50c98"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1datetime_field.html#a70fbf5c22c6aecd06b157e4504d50c98">aestate.dbs._mysql.tag.datetimeField.__init__</a></div><div class="ttdeci">def __init__(self, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00129">tag.py:129</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag_html_adf5b1443fc3bf259302e17a2c37f0832"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#adf5b1443fc3bf259302e17a2c37f0832">aestate.dbs._mysql.tag.baseTag.length</a></div><div class="ttdeci">length</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00048">tag.py:48</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1longtext_field_html_adaede12bd32396dad74926ca8c4a3e4b"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1longtext_field.html#adaede12bd32396dad74926ca8c4a3e4b">aestate.dbs._mysql.tag.longtextField.__init__</a></div><div class="ttdeci">def __init__(self, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00154">tag.py:154</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1longtext_field_html"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1longtext_field.html">aestate.dbs._mysql.tag.longtextField</a></div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00153">tag.py:153</a></div></div>
<div class="ttc" id="anamespaceaestate_1_1dbs_1_1__mysql_1_1tag_html_ac969e1ba370e6c31c4df47e1f2a4cdc0"><div class="ttname"><a href="namespaceaestate_1_1dbs_1_1__mysql_1_1tag.html#ac969e1ba370e6c31c4df47e1f2a4cdc0">aestate.dbs._mysql.tag.update_field</a></div><div class="ttdeci">def update_field(**kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00162">tag.py:162</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinyint_field_html_a2873df48d4a90eeefbe86c210c81a2b4"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinyint_field.html#a2873df48d4a90eeefbe86c210c81a2b4">aestate.dbs._mysql.tag.tinyintField.__init__</a></div><div class="ttdeci">def __init__(self, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00104">tag.py:104</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag_html_ae4275c93a9199d10e5e0cd2ad94220e2"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ae4275c93a9199d10e5e0cd2ad94220e2">aestate.dbs._mysql.tag.baseTag.name</a></div><div class="ttdeci">name</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00044">tag.py:44</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag_html_ac13d1441a97f0871f09b4c8e9537766e"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ac13d1441a97f0871f09b4c8e9537766e">aestate.dbs._mysql.tag.baseTag.is_null</a></div><div class="ttdeci">is_null</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00040">tag.py:40</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag_html_ae43fb3a12d88d59cf251102ea4e8715e"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ae43fb3a12d88d59cf251102ea4e8715e">aestate.dbs._mysql.tag.baseTag.__init__</a></div><div class="ttdeci">def __init__(self, name=None, length=None, d_point=None, t_type='varchar', is_null=False, primary_key=False, comment=&quot;&quot;, auto_field=False, auto_time=False, update_auto_time=False, default=None)</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00011">tag.py:11</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1float_field_html_ae3280d84b236ea239ab4003d69b41a3f"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1float_field.html#ae3280d84b236ea239ab4003d69b41a3f">aestate.dbs._mysql.tag.floatField.__init__</a></div><div class="ttdeci">def __init__(self, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00119">tag.py:119</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template_html"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html">aestate.dbs._mysql.tag.Template</a></div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00091">tag.py:91</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag_html_ab7090a7352de246756445afea6e47364"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ab7090a7352de246756445afea6e47364">aestate.dbs._mysql.tag.baseTag.auto_time</a></div><div class="ttdeci">auto_time</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00030">tag.py:30</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag_html"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html">aestate.dbs._mysql.tag.baseTag</a></div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00010">tag.py:10</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1double_field_html"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1double_field.html">aestate.dbs._mysql.tag.doubleField</a></div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00123">tag.py:123</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag_html_ac92f49bd2c9bccbdf86afcb2f0fea0a0"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ac92f49bd2c9bccbdf86afcb2f0fea0a0">aestate.dbs._mysql.tag.baseTag.d_point</a></div><div class="ttdeci">d_point</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00042">tag.py:42</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinytext_field_html"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinytext_field.html">aestate.dbs._mysql.tag.tinytextField</a></div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00148">tag.py:148</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1int_field_html_a9a4a9cb03cf02c2fca46316a125f6aeb"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1int_field.html#a9a4a9cb03cf02c2fca46316a125f6aeb">aestate.dbs._mysql.tag.intField.__init__</a></div><div class="ttdeci">def __init__(self, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00109">tag.py:109</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinyint_field_html"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinyint_field.html">aestate.dbs._mysql.tag.tinyintField</a></div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00103">tag.py:103</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag_html_aa182a261c9a878936c7d50cb2459b474"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#aa182a261c9a878936c7d50cb2459b474">aestate.dbs._mysql.tag.baseTag.get_table</a></div><div class="ttdeci">def get_table(self, bf)</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00082">tag.py:82</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1text_field_html_a8957836a853ca6a2a2bccfd0cb814e40"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1text_field.html#a8957836a853ca6a2a2bccfd0cb814e40">aestate.dbs._mysql.tag.textField.__init__</a></div><div class="ttdeci">def __init__(self, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00144">tag.py:144</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template_html_a5a86c2b10dc0bfaba1c371ff1e3c9deb"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html#a5a86c2b10dc0bfaba1c371ff1e3c9deb">aestate.dbs._mysql.tag.Template.__init__</a></div><div class="ttdeci">def __init__(self, cls=None, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00093">tag.py:93</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag_html_aa1f042ec0e87fad178bcb8a553e51135"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#aa1f042ec0e87fad178bcb8a553e51135">aestate.dbs._mysql.tag.baseTag.get_field</a></div><div class="ttdeci">def get_field(self, name)</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00070">tag.py:70</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1bigint_field_html"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1bigint_field.html">aestate.dbs._mysql.tag.bigintField</a></div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00113">tag.py:113</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag_html_ae9186d0300cbec3f3b598bd385614483"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#ae9186d0300cbec3f3b598bd385614483">aestate.dbs._mysql.tag.baseTag.primary_key</a></div><div class="ttdeci">primary_key</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00038">tag.py:38</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1char_field_html_a8be38db4654a8000db563e2009c60a23"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1char_field.html#a8be38db4654a8000db563e2009c60a23">aestate.dbs._mysql.tag.charField.__init__</a></div><div class="ttdeci">def __init__(self, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00134">tag.py:134</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1bool_field_html"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1bool_field.html">aestate.dbs._mysql.tag.boolField</a></div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00158">tag.py:158</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template_html_a052b582f7a05ead3545b2820f4ad1e02"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1_template.html#a052b582f7a05ead3545b2820f4ad1e02">aestate.dbs._mysql.tag.Template.fields</a></div><div class="ttdeci">fields</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00094">tag.py:94</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1text_field_html"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1text_field.html">aestate.dbs._mysql.tag.textField</a></div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00143">tag.py:143</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag_html_a6c68001f4fa5ec8aa91cd4b0e50dd027"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#a6c68001f4fa5ec8aa91cd4b0e50dd027">aestate.dbs._mysql.tag.baseTag.set_field</a></div><div class="ttdeci">def set_field(self, name, value)</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00076">tag.py:76</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1double_field_html_a838ccee0750ef904c3447d236e2a6449"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1double_field.html#a838ccee0750ef904c3447d236e2a6449">aestate.dbs._mysql.tag.doubleField.__init__</a></div><div class="ttdeci">def __init__(self, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00124">tag.py:124</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinytext_field_html_a1d1983964c4bdb43a87fdbccf3df1972"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1tinytext_field.html#a1d1983964c4bdb43a87fdbccf3df1972">aestate.dbs._mysql.tag.tinytextField.__init__</a></div><div class="ttdeci">def __init__(self, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00149">tag.py:149</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag_html_af6a06010d1ab46c6732c67ccd138f859"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1base_tag.html#af6a06010d1ab46c6732c67ccd138f859">aestate.dbs._mysql.tag.baseTag.default</a></div><div class="ttdeci">default</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00028">tag.py:28</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1varchar_field_html"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1varchar_field.html">aestate.dbs._mysql.tag.varcharField</a></div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00138">tag.py:138</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1datetime_field_html"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1datetime_field.html">aestate.dbs._mysql.tag.datetimeField</a></div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00128">tag.py:128</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1int_field_html"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1int_field.html">aestate.dbs._mysql.tag.intField</a></div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00108">tag.py:108</a></div></div>
<div class="ttc" id="anamespaceaestate_1_1ajson_html"><div class="ttname"><a href="namespaceaestate_1_1ajson.html">aestate.ajson</a></div><div class="ttdef"><b>Definition:</b> <a href="ajson_2____init_____8py_source.html#l00001">__init__.py:1</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1char_field_html"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1char_field.html">aestate.dbs._mysql.tag.charField</a></div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00133">tag.py:133</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1float_field_html"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1float_field.html">aestate.dbs._mysql.tag.floatField</a></div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00118">tag.py:118</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1bigint_field_html_a489716cff9cc24ca13c2893ea4177d9a"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1bigint_field.html#a489716cff9cc24ca13c2893ea4177d9a">aestate.dbs._mysql.tag.bigintField.__init__</a></div><div class="ttdeci">def __init__(self, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00114">tag.py:114</a></div></div>
<div class="ttc" id="aclassaestate_1_1dbs_1_1__mysql_1_1tag_1_1varchar_field_html_a183b60b757b4379b2ee69db18f91fd7b"><div class="ttname"><a href="classaestate_1_1dbs_1_1__mysql_1_1tag_1_1varchar_field.html#a183b60b757b4379b2ee69db18f91fd7b">aestate.dbs._mysql.tag.varcharField.__init__</a></div><div class="ttdeci">def __init__(self, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="tag_8py_source.html#l00139">tag.py:139</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
